<!DOCTYPE html>
<html lang="en">
  <head>
    <title>SMTPError Enum Reference</title>
    <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../../js/jquery.min.js" defer></script>
    <script src="../../js/jazzy.js" defer></script>
    
  </head>
  <body>
    <a name="//apple_ref/swift/Enum/SMTPError" class="dashAnchor"></a>
    <a title="SMTPError Enum Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../../index.html">Hedwig Docs</a> (100% documented)</p>
        <p class="header-right"><a href="https://github.com/onevcat/Hedwig"><img src="../../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right"><a href="dash-feed://https%3A%2F%2Fonevcat%2Egithub%2Eio%2FHedwig%2Fdocsets%2FHedwig%2Exml"><img src="../../img/dash.png"/>Install in Dash</a></p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../../index.html">Hedwig Reference</a>
        <img id="carat" src="../../img/carat.png" />
        SMTPError Enum Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Classes/SMTP.html">SMTP</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SMTP/Validation.html">– Validation</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SMTP/SMTPError.html">– SMTPError</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SMTP/Secure.html">– Secure</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Classes/SMTP/AuthMethod.html">– AuthMethod</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Enums.html">Enums</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Enums/MailError.html">MailError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Structs.html">Structs</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Structs/Attachment.html">Attachment</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Attachment/FileProperty.html">– FileProperty</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Attachment/HTMLProperty.html">– HTMLProperty</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Attachment/DataProperty.html">– DataProperty</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Attachment/AttachmentType.html">– AttachmentType</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Hedwig.html">Hedwig</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/Mail.html">Mail</a>
              </li>
              <li class="nav-group-task">
                <a href="../../Structs/NameAddressPair.html">NameAddressPair</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../../Typealiases.html">Typealiases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../../Typealiases.html#/s:6Hedwig4Port">Port</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>SMTPError</h1>
              <div class="declaration">
                <div class="language">
                  <pre class="highlight"><code><span class="kd">public</span> <span class="kd">enum</span> <span class="kt">SMTPError</span><span class="p">:</span> <span class="kt">Error</span><span class="p">,</span> <span class="kt">CustomStringConvertible</span></code></pre>

                </div>
              </div>
            <p>Error while SMTP connecting and communicating.</p>

          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError15couldNotConnectFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/couldNotConnect" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError15couldNotConnectFMS1_S1_">couldNotConnect</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Could not connect to remote server.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">couldNotConnect</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L157">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError7timeOutFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/timeOut" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError7timeOutFMS1_S1_">timeOut</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Connecting to SMTP server time out</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">timeOut</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L159">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError11badResponseFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/badResponse" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError11badResponseFMS1_S1_">badResponse</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The response of SMTP server is bad and not expected.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">badResponse</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L161">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError12noConnectionFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/noConnection" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError12noConnectionFMS1_S1_">noConnection</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>No connection has been established</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">noConnection</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L163">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError10authFailedFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/authFailed" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError10authFailedFMS1_S1_">authFailed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Authorization failed</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">authFailed</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L165">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError16authNotSupportedFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/authNotSupported" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError16authNotSupportedFMS1_S1_">authNotSupported</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Can not authorizate since target server not support EHLO</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">authNotSupported</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L167">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError16authUnadvertisedFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/authUnadvertised" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError16authUnadvertisedFMS1_S1_">authUnadvertised</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>No form of authorization methos supported</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">authUnadvertised</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L169">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError16connectionClosedFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/connectionClosed" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError16connectionClosedFMS1_S1_">connectionClosed</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Connection is closed by remote</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">connectionClosed</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L171">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError15connectionEndedFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/connectionEnded" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError15connectionEndedFMS1_S1_">connectionEnded</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Connection is already ended</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">connectionEnded</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L173">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError14connectionAuthFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/connectionAuth" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError14connectionAuthFMS1_S1_">connectionAuth</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Connection auth failed</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">connectionAuth</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L175">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:FOC6Hedwig4SMTP9SMTPError7unknownFMS1_S1_"></a>
                    <a name="//apple_ref/swift/Element/unknown" class="dashAnchor"></a>
                    <a class="token" href="#/s:FOC6Hedwig4SMTP9SMTPError7unknownFMS1_S1_">unknown</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Unknown error</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="k">case</span> <span class="n">unknown</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L177">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:vOC6Hedwig4SMTP9SMTPError11descriptionSS"></a>
                    <a name="//apple_ref/swift/Property/description" class="dashAnchor"></a>
                    <a class="token" href="#/s:vOC6Hedwig4SMTP9SMTPError11descriptionSS">description</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A human-readable description of SMTP error.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">description</span><span class="p">:</span> <span class="kt">String</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/onevcat/Hedwig/tree/1.1.0/Sources/SMTP.swift#L180-L207">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2017 <a class="link" href="https://onev.cat" target="_blank" rel="external">Wei</a>. All rights reserved. (Last updated: 2017-06-03)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.8.2</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
